package com.shiwaixiangcun.monitor.domain;


import com.rabbit.spring.data.domain.BaseEntity;
import com.shiwaixiangcun.core.domain.Dictionary;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Created by Administrator on 2017-12-07.
 */

@Entity
@Table(name = "ms_system_setup")
@DynamicUpdate
@DynamicInsert
public class SystemSetup extends BaseEntity<Long> {
    public static final String THEME_TYPE = "10002";
    public static final String DEFAULT_THEME_NAME = "concise";

    @ManyToOne
    @JoinColumn(name = "user_id")
    private User user;

    private Boolean positioningSwitch;

    @ManyToOne
    @JoinColumn(name = "theme_id")
    private Dictionary theme;   //科技黑，简介，炫黑，经典

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Dictionary getTheme() {
        return theme;
    }

    public void setTheme(Dictionary theme) {
        this.theme = theme;
    }

    public Boolean getPositioningSwitch() {
        return positioningSwitch;
    }

    public void setPositioningSwitch(Boolean positioningSwitch) {
        this.positioningSwitch = positioningSwitch;
    }
}
